====== answersOption() ======

''answersOption()'' allows for the modification of the presentation of questions by ''[[:en:create:functions:answers()]]'' and ''[[:en:create:functions:answersPrint()]]''.

''void **answersOption**(string //Option//, mixed //Setting//)''
  * //Option//\\ The possible options are listed below. The possible values for //Setting// vary according to the respective option.
    * '''spacing''' -- space below a question (Default: '''default''')
      * '''default''' -- default space
      * <Number> -- space in pixels
    * '''show-title''' -- displaying the title of the question (Default: '''yes''')
      * '''yes''' -- Yes, display the title of the question
      * '''no''' -- No, hide the title of the question
    * '''show-explanation''' -- displaying the explanation of the question (Default: '''no''')
      * '''yes''' -- Yes, display the explanation of the question
      * '''no''' -- No, hide the title of the explanation
    * '''show-items''' -- Should all items or options be displayed (Default: '''selected''')
      * '''all''' -- display all items or options
      * '''selected''' -- display only those items of a question which have been answered OR display only those options which have been selected
      * '''ifany''' -- display questions only if at least one answer is given, else as '''selected'''
    * '''symbol-selected''' -- The symbol that shall be used for selected options (Default: ''☒'') -- some possible symbols can be found at [[http://www.w3schools.com/charsets/ref_utf_symbols.asp|w3schools.com]]
    * '''symbol-unselected''' -- The symbol that shall be used for options that have not been selected (Default: ''☐'')
    * '''text-no-answer''' -- The Text that should be displayed if no answer has been selected


===== Tips =====

**Important:** An option selected by ''answersOption()'' only pertains to cues of ''[[:de:create:functions:answers]]'' and ''[[:de:create:functions:answersprint]]'', that take place on the same page of the questionaire and the respective ''answersOption()''.

**Tip:** Use ''answersOption()'' between single cues of ''answers()'' to display single questions differently (see example below).

===== Example =====

<code php>
answersOption('show-explanation', 'yes');
answers('AB01');
answersOption('spacing', 60);
answersOption('show-explanation', 'no');
answersOption('show-items', 'all');
answers('AB02');
answers('AB03');
answersOption('show-explanation', 'no');
answersOption('show-items', 'selected');
answersOption('text-no-answer', 'n/a');
answersOption('symbol-selected', '◉');
answersOption('symbol-selected', '◯');
answersPrint('part2');
</code>